﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ValueConverters="clr-namespace:Cyclops.MainApplication.ValueConverters"
                    xmlns:ViewModel="clr-namespace:Cyclops.MainApplication.ViewModel"
                    xmlns:MainApplication="clr-namespace:Cyclops.MainApplication">

    <ValueConverters:FalseToCollapsedValueConverter x:Key="falseToCollapsedValueConverter"/>

    <ContextMenu x:Key="memberMenu">
        <MenuItem Header="{Binding Path=Conference.SendPrivateMessage, Source={StaticResource ResourceWrapper}}" Command="{Binding StartPrivateWithSelectedMember}">
            <MenuItem.Icon>
                <Image Source="..\..\Resources\send.png" Height="18" />
            </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="{Binding Path=Conference.SendPublicMessage, Source={StaticResource ResourceWrapper}}" Command="{Binding SendPublicMessageToSelectedMember}">
            <MenuItem.Icon>
                <Image Source="" Height="18" />
            </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="{Binding Path=Conference.ViewVcard, Source={StaticResource ResourceWrapper}}" Command="{Binding GetUserVcard}">
            <MenuItem.Icon>
                <Image Source="..\..\Resources\image.png" Height="18" />
            </MenuItem.Icon>
        </MenuItem>
    </ContextMenu>

    <ContextMenu x:Key="chatFlowDocumentMenu">
        <MenuItem Header="{Binding Path=ContextMenus.Copy, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.Copy" />
        <MenuItem Header="{Binding Path=ContextMenus.SelectAll, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.SelectAll" />
        <MenuItem Header="{Binding Path=ContextMenus.Find, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.Find" />
        <MenuItem Header="{Binding Path=ContextMenus.Clear, Source={StaticResource ResourceWrapper}}" Command="{Binding ConferenceViewModel.ClearOutputArea}" />
    </ContextMenu>

    <ContextMenu x:Key="privateFlowDocumentMenu">
        <MenuItem Header="{Binding Path=ContextMenus.Copy, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.Copy" />
        <MenuItem Header="{Binding Path=ContextMenus.SelectAll, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.SelectAll" />
        <MenuItem Header="{Binding Path=ContextMenus.Find, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.Find"/>
        <MenuItem Header="{Binding Path=ContextMenus.Clear, Source={StaticResource ResourceWrapper}}" Command="{Binding ConferenceViewModel.ClearOutputArea}" />
    </ContextMenu>

    <ContextMenu x:Key="trayMenu" Placement="MousePoint" DataContext="{Binding Source={x:Static MainApplication:ApplicationContext.Current}, Path=MainViewModel}"
                 UseLayoutRounding="True" TextOptions.TextFormattingMode="Display">
        <MenuItem Header="{Binding Path=ContextMenus.ShowOrHide, Source={StaticResource ResourceWrapper}}" Command="{Binding ShowOrHide}" />
        <Separator />
        <MenuItem Header="{Binding Path=ContextMenus.Quit, Source={StaticResource ResourceWrapper}}" Command="{Binding Quit}">
            <MenuItem.Icon>
                <Image Source="..\..\Resources\stop.png" Height="18"/>
            </MenuItem.Icon>
        </MenuItem>
    </ContextMenu>
    
    <ContextMenu x:Key="inputMenu">
        <MenuItem Header="{Binding Path=ContextMenus.Copy, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.Copy"/>
        <MenuItem Header="{Binding Path=ContextMenus.Paste, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.Paste"/>
        <MenuItem Header="{Binding Path=ContextMenus.Cut, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.Cut"/>
        <MenuItem Header="{Binding Path=ContextMenus.SelectAll, Source={StaticResource ResourceWrapper}}" Command="ApplicationCommands.SelectAll"/>
        <Separator/>
        <MenuItem Header="{Binding Path=ContextMenus.PasteAndSend, Source={StaticResource ResourceWrapper}}" Command="{Binding ConferenceViewModel.PasteAndSend}" />
    </ContextMenu>

    <ContextMenu x:Key="conferenceMenu">
        <MenuItem Header="{Binding Path=ContextMenus.AddToBookmarks, Source={StaticResource ResourceWrapper}}"  
                  Command="{Binding AddToBookmarks}">
            <MenuItem.Icon>
                <Image Source="..\..\Resources\favorite.png" Height="18"/>
            </MenuItem.Icon>
        </MenuItem>
        <MenuItem Header="{Binding Path=ContextMenus.RemoveFromBookmarks, Source={StaticResource ResourceWrapper}}" 
                  Command="{Binding RemoveFromBookmarks}">
            <MenuItem.Icon>
                <Image Source="..\..\Resources\remove.png" Height="18"/>
            </MenuItem.Icon>
        </MenuItem>
        <Separator/>
        <MenuItem Header="{Binding Path=ContextMenus.Close, Source={StaticResource ResourceWrapper}}" 
                  Command="{Binding Close}">
            <MenuItem.Icon>
                <Image Source="..\..\Resources\stop.png" Height="18"/>
            </MenuItem.Icon>
        </MenuItem>
    </ContextMenu>

    <ContextMenu x:Key="privateMenu">
        <MenuItem Header="{Binding Path=ContextMenus.Close, Source={StaticResource ResourceWrapper}}" 
                  Command="{Binding Close}" />
    </ContextMenu>


</ResourceDictionary>